package server.model.solver.maze;

import server.model.solver.maze.algorithms.*;

public class MazeG implements IDistance{
	public double getDistance(State from, State to) {
		MazeState mazeFrom = (MazeState)from;
		MazeState mazeTo = (MazeState)to;
		
		// Moved diagonally
		if (mazeFrom.getX() != mazeTo.getX() && mazeFrom.getY() != mazeTo.getY()) {
			return 15;
		}
		// Moved straight
		else {
			return 10;
		}
	}

}
